﻿using System.Windows;
using System.Windows.Controls;

namespace WpfApp1.View
{
    /// <summary>
    /// Train.xaml 的交互逻辑
    /// </summary>
    public partial class Train : Window
    {
        public static int tabNum = 0;
        public static TabControl trainTabs;

        public Train()
        {
            InitializeComponent();
            trainTabs = tabs;
            TrainPage trainPage = new TrainPage();

            TabItem tabIterm = new TabItem
            {
                Content = new TrainPage(),
                Header = "培训列表"
            };
            tabs.Items.Add(tabIterm);
            tabs.SelectedIndex = 0;
        }

        private void ChangeTab(object sender, System.Windows.Input.TouchEventArgs e)
        {
            //Train.trainTabs.SelectedIndex = 1;
        }
    }
}
